package com.px.service;

import com.px.mapper.CommodityTempStockDao;
import com.px.pojo.ShCommodityTempStock;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CommodityTempStockDaoServiceImpl implements CommodityTempStockDaoService {

    @Resource
    private CommodityTempStockDao commodityTempStockDao;

    /**
     * 用户添加商品到临时商品表进行审核
     *
     * @param shCommodityTempStock
     * @return
     * @throws Exception
     */
    @Override
    public boolean findCommodityTempStock(ShCommodityTempStock shCommodityTempStock) throws Exception {
        int result = commodityTempStockDao.insert(shCommodityTempStock);
        if (result > 0) {
            return true;
        }
        return false;
    }
}
